/********************************************************************
 * Author: DO HOANG HAI
 * Date of Creation: 21/Aug/2007
 * Last modification: 30/Aug/2007
 * 
 * Description: this class represent an user comment about an Item
 * 
 * Status: Optimized and Finished
 *******************************************************************/
using System;
using System.Collections.Generic;
using System.Text;

namespace Pbdms.Common.DataObject
{
    /// <summary>
    /// Represent a buddy and its information (name, IP address)
    /// </summary>
    public class Buddy
    {
        int id;

        /// <summary>
        /// id of the buddy (to be stored in the database)
        /// </summary>
        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        string name;
        /// <summary>
        /// name of the buddy
        /// </summary>
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        string ipAdd;

        /// <summary>
        /// ip address in the format of a string
        /// </summary>
        public string IpAdd
        {
            get { return ipAdd; }
            set { ipAdd = value; }
        }

        public Buddy() { }

        /// <summary>
        /// create an instance
        /// </summary>
        /// <param name="id"></param>
        /// <param name="name"></param>
        /// <param name="ipAdd"></param>
        public Buddy(int id, string name, string ipAdd)
        {
            this.id = id;
            this.name = name;
            this.ipAdd = ipAdd;
        }
    }
}
